const config:{ [key: string]: any } = {
    url: 'http://127.0.0.1:8080/api',
    projectName: 'MonitorSDK',
    appId: '123456',
    userId: '123456',
    isImageUpload: false,
    batchSize: 5,
};
export function setConfig(options: { [key: string]: any }) {
  if (!options || typeof options !== 'object') {
    console.warn('Invalid configuration provided');
    return;
  }
  
  for (const key in config) {
    if (options.hasOwnProperty(key) && options[key] !== undefined) {
      // Only update known configuration keys
      config[key] = options[key];
    }
  }
}
export default config;